package org.girllee.mds.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * Application event to be handle.
 *
 * @author Asin Liu
 * @version 1.0.0
 * @since 1.0.0
 */


@Component
public class ApplicationEventInit {
    Logger log = LoggerFactory.getLogger(ApplicationEventInit.class);

    @EventListener(ApplicationStartedEvent.class)
    public void run() {
        log.info(">>> ApplicationStartedEvent fired!");

        log.info(">>> ApplicationStartedEvent ended. ");
    }
}
